//
//  VirtualFun.cpp
//  HelloWorld
//
//  Created by Kevin Tang on 1/12/14.
//  Copyright (c) 2014年 Kevin Tang. All rights reserved.
//
#include <iostream>
#include "VirtualFun.h"

void VirtualBase::v_fun(){
    printf("virtual fun in VirtaulBase\n");
}

void VirtualBase::fun(){
    printf("fun in VirtualBase\n");
}


void VirtualInherit::v_fun(){
    printf("vitrual fun in VirtualInherit\n");
}

void VirtualInherit::fun(){
    printf("vun in VirtualInherit \n");
}

void Subc::v_fun()
{
    printf("vun in Subc \n");
}




//模板类构造函数
template <typename T1,typename  T2>
Small<T1, T2>::Small(T1 a,T2 b):i(a),j(b){

}
//模板类成员函数，显示函数
template <typename T1,typename  T2>
void Small<T1, T2>::show(){
    std::cout<<"i="<<i<<"j="<<j<<std::endl;
}
